#ifndef SYSTEM_H
#define SYSTEM_H


#include <QtSql>
#include <QString>

class System
{
public:
    System();
    QSqlDatabase db;

public:
    QString account;
    QString password;
    QString email;
    QString name1;
    QString id1;
    QString phone1;
    QString name2;
    QString id2;
    QString phone2;

    void registerAccount1(QString account, QString password, QString email, QString name1, QString id1, QString phone1);
    void registerAccount2(QString account, QString password, QString email, QString name1, QString id1, QString phone1, QString name2, QString id2, QString phone2);

private:
    void createDatabase();
    void createTable();
};

#endif // SYSTEM_H
